import { get, post } from '../utils/request'
//+ '&deptId=' + deptId
export const DetailBySn = (sn, deptId) =>
  get('/cloud-equip/equip-info/DetailBySn/' + sn)
export const detail = (id) => get('/cloud-equip/equip-type/detail/' + id)
export const depositPay = (row) =>
  get('/cloud-equip/depositPay', {
    ...row,
  })
export const query = (recordId) =>
  get('/cloud-equip/query?recordId=' + recordId)

export const getRewardRule = (row) =>
  get('/cloud-merchant/app/equip/getRewardRule',{
    ...row,
  })

export const getInfoByTenantId = (row) => get('/cloud-system/dept-design/getInfoByTenantId',row)
